/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at <http://mozilla.org/MPL/2.0/>. */

.popover .preview {
  background: var(--theme-body-background);
  width: 350px;
  min-height: 80px;
  border: 1px solid var(--theme-splitter-color);
  padding: 10px;
  height: auto;
  min-height: inherit;
  max-height: 200px;
  overflow: auto;
  box-shadow: 1px 2px 3px var(--popup-shadow-color);
}

.theme-dark .popover .preview {
  box-shadow: 1px 2px 3px var(--popup-shadow-color);
}

.popover .preview .header {
  width: 100%;
  line-height: 20px;
  border-bottom: 1px solid #cccccc;
  display: flex;
  flex-direction: column;
}

.popover .preview .header .link {
  align-self: flex-end;
  color: var(--theme-highlight-blue);
  text-decoration: underline;
}

.selection,
.debug-expression.selection {
  background-color: var(--theme-highlight-yellow);
}

.theme-dark .selection,
.theme-dark .debug-expression.selection {
  background-color: #743884;
}

.theme-dark .cm-s-mozilla .selection,
.theme-dark .cm-s-mozilla .debug-expression.selection {
  color: #e7ebee;
}

.popover .preview .function-signature {
  padding-top: 10px;
}

.theme-dark .popover .preview {
  border-color: var(--theme-body-color);
}

.tooltip {
  position: fixed;
  z-index: 100;
}

.tooltip .preview {
  background: var(--theme-toolbar-background);
  max-width: inherit;
  min-height: 80px;
  border: 1px solid var(--theme-splitter-color);
  box-shadow: 1px 2px 4px 1px var(--theme-toolbar-background-alt);
  padding: 5px;
  height: auto;
  min-height: inherit;
  max-height: 200px;
  overflow: auto;
}

.theme-dark .tooltip .preview {
  border-color: var(--theme-body-color);
}

.tooltip .gap {
  height: 4px;
  padding-top: 4px;
}

.add-to-expression-bar {
  border: 1px solid var(--theme-splitter-color);
  border-top: none;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  font-size: 14px;
  line-height: 30px;
  background: var(--theme-toolbar-background);
  color: var(--theme-text-color-inactive);
  padding: 0 4px;
}

.add-to-expression-bar .prompt {
  width: 1em;
}

.add-to-expression-bar .expression-to-save-label {
  width: calc(100% - 4em);
}

.add-to-expression-bar .expression-to-save-button {
  font-size: 14px;
  color: var(--theme-comment);
}
